
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="book" method="post" enctype="multipart/form-data">
    <input type="text" name="bookname" id="bookname">
    <input type="text" name="author">
    <input type="text" name="express">
    <input type="text" name="money">
    <input type="text" name="method" value="add">
  <input type="file" name="img">
  <button type="submit">提交</button>
</form>

<script>
    console.log(document.getElementById("bookname").value);
</script>
</body>
</html>
